Don't set an input shape unless client-decorated
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Sep 2014 19:43:11 +0000 (15:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Sep 2014 19:43:11 +0000 (15:43 -0400)
We were actually setting an input shape larger than the window
in !csd, and this was confusing at least openbox.

https://bugzilla.gnome.org/736064

gtk/gtkwindow.c

index 592a0853e7090c3cda7370a15221c9dd389fd0b0..9b17febaed9e9dd0f3215e76df1b177cd784b717 100644 (file)
@@ -6763,6 +6763,9 @@ update_border_windows (GtkWindow *window)
   GtkStyleContext *context;
   GtkStateFlags state;
 
+  if (!priv->client_decorated)
+    return;
+
   state = gtk_widget_get_state_flags (widget);
   context = gtk_widget_get_style_context (widget);